import { RouteRecordRaw, RouterView } from 'vue-router'

const routes: RouteRecordRaw[] = [
  {
    name: 'product',
    path: '/product',
    component: RouterView,
    children: [
      {
        name: 'product_list',
        path: 'product_list',
        component: () => import('@/views/product/list/list.vue')
      },
      {
        name: 'product_clssify',
        path: 'product_clssify',
        component: () => import('@/views/product/clssify/list.vue')
      },
      {
        name: 'product_attr',
        path: 'product_attr',
        component: () => import('@/views/product/attr/list.vue')
      },
      {
        name: 'product_reply',
        path: 'product_reply',
        component: () => import('@/views/product/reply/list.vue')
      }
    ]
  }
]

export default routes
